<template>
    <div>
        <h1>子组件  带slot传值</h1>
        <slot></slot>
    </div>
</template>

<script>
    export default {
        beforeCreate(){
            console.log("C beforeCreate")
        },
        created(){
            console.log("C created")
        },
        beforeMount(){
            console.log("C beforeMount")
        },
        mounted(){
            console.log("C mounted")
        },
        beforeUpdate(){
            console.log("C beforeUpdate")
        },
        updated(){
            console.log("C updated")
        },
        beforeDestroy(){
            console.log("C beforeDestroy")
        },
        destroyed(){
            console.log("C destroyed")
        },
    }
</script>

<style lang="scss" scoped>

</style>